
<div id="main-content" class="prepend-1 span-19 last">
	<h3>Detil Pendaftaran Beasiswa - <?php echo $scholarship->name; ?></h3>
	<div class="span-6" align="center">
<?php 
	$img = array(
		'width' => 200,
		'height' => 200,
		'src' => site_url('mahasiswa/scholar/applyphoto/'.$id),
		'alt' => 'Foto Mahasiswa'
	);
	echo img($img);
?>
	</div>
	<div class="span-17">
		<h4>Data Diri</h4>
		<table>
			<tr>
				<td width="200"><b>Nama</b></td>
				<td><?php echo $student->name; ?></td>
			</tr>
			<tr>
				<td><b>Angkatan</b></td>
				<td><?php echo $student->year; ?></td>
			</tr>
			<tr>
				<td><b>Semester</b></td>
				<td><?php echo $student->term; ?></td>
			</tr>
			<tr>
				<td><b>Pendapatan Orang Tua</b></td>
				<td><?php echo $student->parent_income; ?></td>
			</tr>
			<tr>
				<td><b>Jumlah Saudara</b></td>
				<td><?php echo $student->siblings; ?></td>
			</tr>
			<tr>
				<td><b>IPK</b></td>
				<td><?php echo $student->gpa; ?></td>
			</tr>
		</table>
	</div>
	<div class="clear"><?php echo nbs(); ?></div>
	<div class="span-17">
	<h4>Kelengkapan Berkas</h4>
<?php
	if ($downloadstatus == 'failed') {
		echo '<span class="error">Dokumen '.$nofoundfile.' tidak ditemukan atau corrupt.</span><br /><br />';
	}
?>
	<table>
		<tr>
			<th width="250">Kategori Berkas</th>
			<th width="150">Tanggal Upload</th>
			<th>Berkas</th>
		</tr>
<?php 
	if ($documents == NULL) : 
?>
		<tr>
			<td colspan="3" align="center"><span class="info">Tidak ada berkas disyaratkan untuk beasiswa ini.</span>
		</tr>
<?php 
	else :
		$flag_file = TRUE;
		foreach($documents as $document) :
?>
		<tr>
			<td><?php echo $document->name; ?></td>
<?php 
	if (isset($studentfile[$document->id])) :
?>
			<td align="center"><?php echo mdate(DATE_FORMAT, mysql_to_unix($studentfile[$document->id]->upload_time)); ?></td>
			<td align="center"><?php echo anchor('mahasiswa/scholar/applydocument/'.$id.'/'.$document->id, $student->username.' - '.$document->name.'.pdf'); ?></td>
<?php else : ?>
			<td align="center">-</td>
			<td align="center"><span class="error">Tidak ada berkas diupload.</span></td>
<?php endif; ?>
		</tr>
<?php 
		endforeach;
	endif;
?>
	</table>
	</div>
	<div class="clear"><?php echo nbs(); ?></div>
	<h4>Detil Beasiswa</h4>
	<table>
		<tr>
			<td width="200px"><label>Nama Beasiswa</label>
			<td><?php echo $scholarship->name; ?></td>
		</tr>
		<tr>
			<td><label>Batas Pengajuan</label></td>
			<td><?php echo date(DAY_FORMAT, strtotime($scholarship->deadline)); ?></td>
		</tr>
		<tr>
			<td><label>Awal Periode</label></td>
			<td><?php echo date(MONTH_YEAR_FORMAT, strtotime($scholarship->period_start)); ?></td>			
		</tr>
		<tr>
			<td><label>Akhir Periode</label></td>
			<td><?php echo date(MONTH_YEAR_FORMAT, strtotime($scholarship->period_end)); ?></td>			
		</tr>
		<tr>
			<td><label>Keterangan</label></td>
			<td><?php echo $scholarship->details; ?></td>
		</tr>
	</table>
	<!-- #1493 <div class="span-17">
		<h4>Daftar Organisasi</h4>
		<table>
			<tr>
				<th width="300">Nama Organisasi</th>
				<th width="100">Tahun</th>
				<th>Jabatan dan Deskripsi Singkat</th>
			</tr>
<?php 
	if ($organizations == NULL) :
?>
		<tr>
			<td colspan="3" align="center">
				<span class="info">Belum ada organisasi ditambahkan.</span>
			</td>
		</tr>
<?php 
	else :
		foreach ($organizations as $organization) :
?>
		<tr>
			<td><?php echo $organization->name; ?></td>
			<td align="center"><?php echo $organization->year; ?></td>
			<td><?php echo $organization->position; ?></td>
		</tr>
<?php 
		endforeach;
	endif;
?>
		</table>
	</div>
	<div class="clear"><?php echo nbs(); ?></div>
	<div class="span-17">
		<h4>Daftar Prestasi</h4>
		<table>
			<tr>
				<th width="300">Nama Prestasi</th>
				<th width="100">Tahun</th>
				<th>Keterangan Hasil dan Deskripsi Singkat</th>
			</tr>
<?php 
	if ($achievements == NULL) :
?>
			<tr>
				<td colspan="3" align="center">
					<span class="info">Belum ada prestasi ditambahkan.</span>
				</td>
			</tr>
<?php 
	else :
		foreach ($achievements as $achievement) :
?>
			<tr>
				<td><?php echo $achievement->name; ?></td>
				<td align="center"><?php echo $achievement->year; ?></td>
				<td><?php echo $achievement->result; ?></td>
			</tr>
<?php 
		endforeach;
	endif;
?>
		</table>
	</div>
	<div class="clear"><?php echo nbs(); ?></div>
	<div class="span-19">
		<h4>Cerita Singkat</h4>
<?php 
	if ($story == NULL) {
		echo '<p class="error">Tidak ada cerita singkat. Tambahkan cerita singkat di '.anchor('mahasiswa/profile/story', 'menu ini').'.</p>';
	} else {
		echo $story->story;
	}
?>
	</div> -->
	<div class="clear"><?php echo nbs(); ?></div>
</div>